package com.cloud.neo4j.business.neo4j.car.service.impl;

import com.cloud.neo4j.business.neo4j.car.entity.PersonEntity;
import com.cloud.neo4j.business.neo4j.car.repository.PersonRepository;
import com.cloud.neo4j.business.neo4j.car.service.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 测试查询业务层
 * @author 刘房
 * @date 2022-05-24
 */
@Service
public class PersonServiceImpl implements IPersonService {


    @Autowired
    private PersonRepository personRepository;

    @Override
    public List<PersonEntity> findAll(PersonEntity personEntity) {
        return personRepository.findAll();
    }
}
